package com.cy.filters;

import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.RequestOriginParser;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName DefaultRequestOriginParser
 * @Description:类描述
 * @Author Tedu
 * @Date 2021/6/2 16:21
 * @Version V1.0
 **/
/*构建授权对象的请求头*/

@Component
public class DefaultRequestOriginParser implements RequestOriginParser {
    @Override
    public String parseOrigin(HttpServletRequest request) {
        String origin = request.getParameter("origin");
        return origin;
    }
}

